<html>
<head>
<title>application.properties</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
.s0 { color: #7a7e85;}
.s1 { color: #bcbec4;}
.s2 { color: #cf8e6d;}
.s3 { color: #808080;}
.s4 { color: #6aab73;}
</style>
</head>
<body bgcolor="#1e1f22">
<table CELLSPACING=0 CELLPADDING=5 COLS=1 WIDTH="100%" BGCOLOR="#606060" >
<tr><td><center>
<font face="Arial, Helvetica" color="#000000">
application.properties</font>
</center></td></tr></table>
<pre><span class="s0"># 应用服务 WEB 访问端口</span>
<span class="s2">server.port</span><span class="s3">=</span><span class="s4">8080</span>
<span class="s0">#下面这些内容是为了让MyBatis映射</span>
<span class="s0">#指定Mybatis的Mapper文件</span>
<span class="s2">mybatis.mapper-locations</span><span class="s3">=</span><span class="s4">classpath:mappers/*xml</span>
<span class="s0">#指定Mybatis的实体目录</span>
<span class="s2">mybatis.type-aliases-package</span><span class="s3">=</span><span class="s4">com.example.demo.mybatis.entity</span>

<span class="s2">spring.datasource.url</span><span class="s3">=</span><span class="s4">jdbc:mysql://localhost:3306/world?useUnicode=true&amp;characterEncoding=UTF-8&amp;useSSL=false&amp;serverTimezone=Asia/Shanghai&amp;allowPublicKeyRetrieval=true</span>
<span class="s2">spring.datasource.username</span><span class="s3">=</span><span class="s4">root</span>
<span class="s2">spring.datasource.password</span><span class="s3">=</span><span class="s4">1234</span>
<span class="s2">spring.datasource.driver-class-name</span><span class="s3">=</span><span class="s4">com.mysql.cj.jdbc.Driver</span>
</pre>
</body>
</html>